package com.itany.pojo;


import java.io.Serializable;
import java.util.List;

/**
 * 出版社
 */
public class Press implements Serializable {
    /**
     * 出版社id
     */
    private Integer id;
    /**
     * 出版社名称
     */
    private String name;
    /**
     * 是否启用
     */
    private Integer flag;

    private List<Book> books;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public List<Book> getBooks() {
        return books;
    }

    public void setBooks(List<Book> books) {
        this.books = books;
    }

    @Override
    public String toString() {
        return "Press{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", flag=" + flag +
                ", books=" + books +
                '}';
    }
}
